# eric7.Preferences.ConfigurationPages.EditorFilePage

Module implementing the Editor File Handling configuration page.

### Global Attributes

None

### Classes

EditorFilePage | Class implementing the Editor File Handling configuration page.

### Functions

create | Module function to create the configuration page.

## EditorFilePage

Class implementing the Editor File Handling configuration page.

### Derived from

ConfigurationPageBase, Ui_EditorFilePage

### Class Attributes

None

### Class Methods

None

### Methods

EditorFilePage | Constructor
__checkFileFilter | Private method to check a file filter for validity.
__extractFileFilters | Private method to extract the file filters.
__setDefaultFiltersLists | Private slot to set the default file filter combo boxes.
on_addFileFilterButton_clicked | Private slot to add a file filter to the list.
on_deleteFileFilterButton_clicked | Private slot called to delete a file filter entry.
on_editFileFilterButton_clicked | Private slot called to edit a file filter entry.
on_fileFiltersList_currentItemChanged | Private slot to set the state of the edit and delete buttons.
on_openFiltersButton_toggled | Private slot to switch the list of file filters.
on_previewMarkdownPyMdownInstallPushButton_clicked | Private slot to install the pymdown extensions package via pip.
polishPage | Public slot to perform some polishing actions.
save | Public slot to save the Editor File Handling configuration.

### Static Methods

None

#### EditorFilePage (Constructor)

EditorFilePage()

Constructor

#### EditorFilePage.__checkFileFilter

__checkFileFilter(fileFilter)

Private method to check a file filter for validity.

fileFilter (str)
  file filter pattern to check

Return:
  flag indicating validity

Return Type:
  bool

#### EditorFilePage.__extractFileFilters

__extractFileFilters()

Private method to extract the file filters.

#### EditorFilePage.__setDefaultFiltersLists

__setDefaultFiltersLists(keepSelection=False)

Private slot to set the default file filter combo boxes.

keepSelection (bool)
  flag indicating to keep the current selection if possible

#### EditorFilePage.on_addFileFilterButton_clicked

on_addFileFilterButton_clicked()

Private slot to add a file filter to the list.

#### EditorFilePage.on_deleteFileFilterButton_clicked

on_deleteFileFilterButton_clicked()

Private slot called to delete a file filter entry.

#### EditorFilePage.on_editFileFilterButton_clicked

on_editFileFilterButton_clicked()

Private slot called to edit a file filter entry.

#### EditorFilePage.on_fileFiltersList_currentItemChanged

on_fileFiltersList_currentItemChanged(current, _previous)

Private slot to set the state of the edit and delete buttons.

current (QListWidgetItem)
  new current item
_previous (QListWidgetItem)
  previous current item (unused)

#### EditorFilePage.on_openFiltersButton_toggled

on_openFiltersButton_toggled(checked)

Private slot to switch the list of file filters.

checked (bool)
  flag indicating the check state of the button

#### EditorFilePage.on_previewMarkdownPyMdownInstallPushButton_clicked

on_previewMarkdownPyMdownInstallPushButton_clicked()

Private slot to install the pymdown extensions package via pip.

#### EditorFilePage.polishPage

polishPage()

Public slot to perform some polishing actions.

#### EditorFilePage.save

save()

Public slot to save the Editor File Handling configuration.

Up

## create

create(_dlg)

Module function to create the configuration page.

_dlg (ConfigurationDialog)
  reference to the configuration dialog (unused)

Return:
  reference to the instantiated page

Return Type:
  ConfigurationPageBase

Up